//
// Created by Administrator on 2025/6/11.
//

#ifndef CTEST_TEST4_H
#define CTEST_TEST4_H

namespace NS4 {
    class Test4 {
    private:
        int age;
    public:
        Test4() = default;

        Test4(int age) : age(age) {};

        virtual void foo1() = 0;

        void foo2();
    };

    class Test4Child : public Test4 {

    private:
        char *chr;

    public:
        Test4Child() = default;
        Test4Child(char c[]) : chr(c), Test4(1) {};

        void foo1() override;
    };
}


#endif //CTEST_TEST4_H
